package com.cellulam.framework.scaffold.generate.project;

import com.cellulam.framework.scaffold.generate.utils.GenUtils;

public class MavenProjectInfo {

    protected String rootDirectory;
    protected String _package;
    protected String _groupId;
    protected String _rootArtifactId;

    public MavenProjectInfo(String rootDirectory, String _package, String _groupId,
                            String _rootArtifactId) {
        this.rootDirectory = rootDirectory;
        this._package = _package;
        this._groupId = _groupId;
        this._rootArtifactId = _rootArtifactId;
    }

    protected String getArtifactId(String subModuleName) {
        return _rootArtifactId + "-" + subModuleName;
    }

    protected String getPackageInPath() {
        return GenUtils.dotToSlash(_package);
    }

}
